package solution;


/**
 * Klasa, która zapewnia latwy dostep do tablicy: data[machines][jobs], ilosci prac i maszyn;
 */

public class InputData {
        public int[][] data_;
        private int _machines;
        private int _jobs;
        
        /** konstruktor do testów */
        public InputData(int machines, int jobs) {
                data_ = new int[machines][jobs];
                _machines = machines;
                _jobs = jobs;
        }
        
        public InputData(int machines, int jobs, int[][] data) {
                data_ = new int[machines][jobs];
                _machines = machines;
                _jobs = jobs;
                for(int i=0; i<machines; i++){
                        for(int j=0; j<jobs; j++){
                                data_[i][j] = data[i][j];
                        }
                }
        }
        
        public int getMachines() {
                return _machines;
        }

        public void setMachines(int _machines) {
                this._machines = _machines;
        }

        public int getJobs() {
                return _jobs;
        }

        public void setJobs(int _jobs) {
                this._jobs = _jobs;
        }
}
